<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>子选择器</title>

    <style>
        .nav > a {
            color: red;
        }
    </style>

</head>
<body>
    
    <h3>子元素先择期（子选择器）只能选择作为某元素的最近一级子元素。简单理解就是选亲儿子元素</h3>
    <h4>元素1 > 元素2 { 样式声明 }</h4>

    <div class="nav">
        <a href="#">div第一级</a>
        <p>
            <a href="#">div第二级</a>
        </p>
    </div>

</body>
</html>